﻿#pragma once

#include "resource.h"
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN             // 从 Windows 头文件中排除极少使用的内容
// Windows 头文件
#include <windows.h>
// C 运行时头文件
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <time.h>
// C++ 运行时头文件
#include <list>
#include <vector>
#include <string>

#include <d3d9.h>
#include <d3dx9tex.h>
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
#pragma comment(lib, "winmm.lib")

#include <wrl.h>
namespace wrl = Microsoft::WRL;

#define WindowsWidth 1200
#define WindowsHeight 800

const float DEGTORAD = 0.017453f;
//const float DEGTORAD = 1.0f;

enum {
	Left_A, Up_W, Right_D, Down_S,
};

//D3D对象
extern wrl::ComPtr<IDirect3D9> _D3D;
//D3D设备对象
extern wrl::ComPtr<IDirect3DDevice9> _Device;
extern wrl::ComPtr<ID3DXSprite> _Sprite;

